package br.com.hibernate.util;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;


public class HibernateUtil {
	
	private static final SessionFactory getSessionFactory= buildSessionFactory();

	private static SessionFactory buildSessionFactory() {
		
			
			Configuration cfg = new Configuration();
			cfg.configure("hibernate.cfg.xml");
			return cfg.buildSessionFactory();
			
		
	
	}

	public static SessionFactory getGetsessionfactory() {
		return getSessionFactory;
	}


}
